package com.afterStartup;

import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author: cxt
 * @time: 2022/8/23
 * 启动之后第2位执行
 */
@Component
public class MyPostConstruct {
    @PostConstruct
    public void one(){
        System.out.println("启动之后执行：(方法注解)PostConstruct");
    }
}
